<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/view/include/taglib.jsp" %>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
	
	<link href="${project}/ds/css/input.css" rel="stylesheet"/>
    <link href="${project}/ds/css/roomStyle.css" rel="stylesheet"/>
    <link href="${project}/ds/lib/layui/css/layui.css" rel="stylesheet"/>
    <link href="${project}/ds/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet"/>
    <link href="${project}/ds/lib/ligerUI/skins/Gray2014/css/all.css" rel="stylesheet"/>

    <script src="${project}/ds/lib/jquery/jquery-1.9.0.min.js" type="text/javascript"></script>
    <script src="${project}/ds/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
    <script src="${project}/ds/lib/ligerUI/js/ligerui.min.js" type="text/javascript"></script>
    <script src="${project}/ds/js/XHD.js" type="text/javascript"></script>
    <script src="${project}/ds/lib/layui/layui.js" type="text/javascript"></script>
    <script type="text/javascript">
        var manager;
        var layer;

        layui.use(['layer'],
            function () {
                layer = layui.layer;
            });

        $(function() {
            $("#form1").ligerForm();
            manager = $("#maingrid4")
                .ligerGrid({
                    columns: [
                        {
                            display: '序号',
                            width: 40,
                            render: function (rowData, rowindex) {
                                return rowindex + 1;
                            }
                        },
                        { display: "姓名", name: "D_Name", width: 100 },
                        { display: "手机", name: "D_Tel", width: 100 },
                        { display: "内容", name: "D_Content", width: 300 },
                        { display: "发送时间", name: "D_Date", width: 150 },
                        {
                            display: '类型',
                            name: 'D_Type',
                            width: 80,
                            render: function (item) {
                                var str;
                                switch(item.D_Type) {
                                    case 1:
                                        str = "验证码";
                                        break;
                                    case 2:
                                        str = "确定房源";
                                        break;
                                    case 3:
                                        str = "项目结束统一发送";
                                        break;
                                    default:
                                        str = "未知";
                                        break;
                                }
                                return str;
                            }
                        },
                        { display: "返回代码", name: "D_Code", width: 60 },
                        { display: "内容", name: "D_Msg", width: 120 },
                        { display: "测试列表", name: "D_FailList", width: 120 },
                        { display: "返回内容", name: "D_Url", width: 500 }
                    ],
                    dataAction: "server",
                    sortName: "D_ID",
                    sortOrder: "desc",
                    pageSize: 50,
                    rowHeight: 22,
                    pageSizeOptions: [20, 30, 50, 100],
                    url: "/smslog/getGrid",
                    width: '100%',
                    height: '100%',
                    heightDiff: -1
                });
        });
    </script>
</head>
<body>
    <div style="height: 100%; width: 100%;">
        <div id="maingrid4" style="margin: -1px;"></div>
    </div>
</body>
</html>